package com.org.web.handle.classify.dao;

import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.cache.annotation.Cacheable;

/** @author devg @Date 2020/2/28 15:17 */

@Mapper
public interface ClassifyMapper {

  @Cacheable(cacheNames = "cache:classify:onelevel")
  List<Map<String, Object>> getOneLevelList(Map<String, Object> param);

  @Cacheable(cacheNames = "cache:classify:parentId", key = "#root.args[0]['parentId']")
  List<Map<String, Object>> getListByParentId(Map<String, Object> param);

  List<Map<String, Object>> getClassifyList(Map<String, Object> param);
}
